package com.feng.mybatis.mapper;

import com.feng.mybatis.bean.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.omg.PortableInterceptor.Interceptor;

@Mapper
public interface BookMapper {
    public Book getBookById(Integer id);

    @Select("select count(*) from book")
    public Integer getCount();
}
